import QtQuick
import QtQuick.Controls
import Qt5Compat.GraphicalEffects
import qml_menu_style
import "." as Components

Menu {
    id: baseMenu

    // 菜单背景样式
    background: Rectangle {
        anchors.fill: parent
        implicitWidth: MenuTheme.menuWidth
        color: MenuTheme.colors.background
        border.color: MenuTheme.colors.borderColor
        radius: MenuTheme.radius
        
        layer.enabled: true
        layer.effect: DropShadow {
            transparentBorder: true
            color: MenuTheme.shadow.color
            radius: MenuTheme.shadow.radius
            samples: MenuTheme.shadow.samples
        }
    }

    delegate: Components.BaseMenuItem {}

    // 调整菜单项之间的间距
    spacing: 2
    
    // 调整菜单内边距
    topPadding: 2
    bottomPadding: 2
    leftPadding: 2
    rightPadding: 2
} 
